﻿<UserControl x:Class="P2.Cuberry.Modules.SimpleAccounting.FiAccountingReport.FiAccountingReportsFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Margin="0" MinWidth="230" Width="Auto" MinHeight="230" Height="300"
    xmlns:src="clr-namespace:P2.Cuberry.Modules.SimpleAccounting.FiAccountingReport.BusinessEntities">

    <Grid>
    <Grid.RowDefinitions>       
        <RowDefinition Height="*"/>        
    </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>


        <Grid.Resources>
            <src:ListCategories x:Key="MyList"/>
            <src:ReportCategoryConverter x:Key="MyConverter" />

            <HierarchicalDataTemplate DataType = "{x:Type src:Category}"  ItemsSource = "{Binding Path=SubCategories}">
                <TextBlock Text="{Binding Path=Name}"/>
            </HierarchicalDataTemplate>            
        </Grid.Resources>

        <TreeView Name="ReportTree" ItemsSource="{Binding Source={StaticResource MyList}}"  MouseLeftButtonUp="ReportTree_MouseClick">            
        </TreeView>

    </Grid>
</UserControl>
